package com.skyolder.crutch.word.token.raw;

import com.skyolder.crutch.error.GrammarError;
import com.skyolder.crutch.word.raw.BufferCharPiper;
import com.skyolder.crutch.word.raw.BufferCharQueue;
import com.skyolder.crutch.word.types.RawTokenType;

public class NextLineTokenCreator implements TokenCreator {
	public RawToken tryCreateToken(BufferCharQueue bufferCharQueue) throws GrammarError {
		char c = bufferCharQueue.peekChar();
		if (c != '\r'||c!='\n') {
			return null;
		}
		return new RawToken("",RawTokenType.NEWLINE);
	}
}
